package com.systop.asset.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.systop.asset.mapper.RepairDetailMapper;
import com.systop.asset.entity.RepairDetail;
import com.systop.asset.service.IRepairDetailService;

/**
 * 资产维修记录详情Service业务层处理
 * 
 * @author cc
 * @date 2025-07-07
 */
@Service
public class RepairDetailServiceImpl implements IRepairDetailService 
{
    @Autowired
    private RepairDetailMapper repairDetailMapper;

    /**
     * 查询资产维修记录详情
     * 
     * @param id 资产维修记录详情主键
     * @return 资产维修记录详情
     */
    @Override
    public RepairDetail selectRepairDetailById(Long id)
    {
        return repairDetailMapper.selectRepairDetailById(id);
    }

    /**
     * 查询资产维修记录详情列表
     * 
     * @param repairDetail 资产维修记录详情
     * @return 资产维修记录详情
     */
    @Override
    public List<RepairDetail> selectRepairDetailList(RepairDetail repairDetail)
    {
        return repairDetailMapper.selectRepairDetailList(repairDetail);
    }

    /**
     * 新增资产维修记录详情
     * 
     * @param repairDetail 资产维修记录详情
     * @return 结果
     */
    @Override
    public int insertRepairDetail(RepairDetail repairDetail)
    {
        return repairDetailMapper.insertRepairDetail(repairDetail);
    }

    /**
     * 修改资产维修记录详情
     * 
     * @param repairDetail 资产维修记录详情
     * @return 结果
     */
    @Override
    public int updateRepairDetail(RepairDetail repairDetail)
    {
        return repairDetailMapper.updateRepairDetail(repairDetail);
    }

    /**
     * 批量删除资产维修记录详情
     * 
     * @param ids 需要删除的资产维修记录详情主键
     * @return 结果
     */
    @Override
    public int deleteRepairDetailByIds(Long[] ids)
    {
        return repairDetailMapper.deleteRepairDetailByIds(ids);
    }

    /**
     * 删除资产维修记录详情信息
     * 
     * @param id 资产维修记录详情主键
     * @return 结果
     */
    @Override
    public int deleteRepairDetailById(Long id)
    {
        return repairDetailMapper.deleteRepairDetailById(id);
    }
}
